package com.sl.water.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("b_r_info") // 汇总结果
@Accessors(chain = true)
public class BRInfo extends Model<BRInfo> {

    /**
     * 主键ID，自增
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "方案ID")
    private Long sId;

    @Schema(description = "类型bfh  fh")
    private String kind;

    @Schema(description = "时间点")
    private Integer t;

    @Schema(description = "淹没面积")
    private Double area;

    @Schema(description = "最大水深")
    private Double depth;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
}

